home *** CD-ROM | disk | FTP | other *** search
- Path: newsbf02.news.aol.com!not-for-mail
- From: jipph@aol.com (Jipph)
- Newsgroups: comp.lang.c++
- Subject: object oriented and real time programming
- Date: 23 Jan 1996 09:24:33 -0500
- Organization: America Online, Inc. (1-800-827-6364)
- Sender: root@newsbf02.news.aol.com
- Message-ID: <4e2r31$fd3@newsbf02.news.aol.com>
- Reply-To: jipph@aol.com (Jipph)
- NNTP-Posting-Host: newsbf02.mail.aol.com
-
- I need some help with making use of interrupt routines in a C++
- program. Turns out that I've written a sort of simple protocol converter
- at work. Because one of the devices we manufacture has an unwieldy native
- protocol, the converter allows the use of a simple ascii protocol to make
- use of a sub set of the functions of the device. I wrote the code in C,
- and was interested in rewriting it in C++ when I ran across a problem. I
- wanted to make a base class for Uarts. It occured to me that I can't put
- an interrupt routine in the class because when the interrupt occurs there
- is no way to know which instance of the class the interrupt routine should
- use. A coworker suggested I use a thing called a thunk. I admitted I had
- some learning to do. Can anyone tell me what a thunk is, and how it might
- help in this situation? Is it even right thinking to want an interrupt
- routine in a class? I'd appreciate any suggestions.
-
-
-
- In your debt (If you have a good answer)
-
- Jeff
-